#!/usr/bin/env bash



mkdir logs

cur_path=`pwd`

IMAGES="nginx"
CONTAINER_NAME="faq_semantic_retrieval_nginx"
CONF_VOLUME=$cur_path"/nginx.conf:/etc/nginx/nginx.conf"
LOGS_VOLUME=$cur_path"/logs:/var/log/nginx"
PORT_MAPPING="8122:80"

docker run -d -p $PORT_MAPPING --name $CONTAINER_NAME -v $CONF_VOLUME -v $LOGS_VOLUME $IMAGES